<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>系统菜单管理</title>
    <%@include file="/WEB-INF/views/commons/commons.jsp" %>
    <script type="text/javascript" src="/static/js/system/menu.js"></script>
</head>
<body>
<table id="menu_datagrid"></table>
<!--员工的工具栏-->
<div id="tb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>

</div>


<div id="menu_dialog">
    <center>
        <form id="menu_form" method="post">
            <input type="hidden" id="menuId" name="id">
            <table align="center" style="margin-top: 15px">
                <tr>
                    <td>菜单名</td>
                    <td><input class="easyui-textbox" name="text">
                    </td>
                </tr>

                <tr>
                    <td>URL</td>
                    <td><input class="easyui-textbox" name="url">
                    </td>
                </tr>
                <tr>
                    <!--简单起见职2层菜单-->
                    <td>父级菜单</td>
                    <td><input class="easyui-combobox" name="parent.id" data-options="
                valueField: 'id',textField: 'text', panelHeight:'auto',
                   url:'/systemMenu/queryParentMenu'">
                    </td>
                </tr>
                <tr>
                    <td>绑定权限</td>
                    <td><input class="easyui-combobox" name="permission.id" data-options="
                valueField: 'id',textField: 'name', panelHeight:'auto',
                   url:'/permission/queryPermissions'">
                    </td>
                </tr>

            </table>
        </form>
    </center>
</div>

<!--员工底部按钮-->
<div id="bb">
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" data-cmd="save">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="cancel">关闭</a>
</div>
</body>
</html>
